import request from '@/utils/request'

// 查询物流单列表
export function listTblLogisticsSheet(query) {
  return request({
    url: '/system/TblLogisticsSheet/list',
    method: 'get',
    params: query
  })
}

// 查询物流单详细
export function getTblLogisticsSheet(id) {
  return request({
    url: '/system/TblLogisticsSheet/' + id,
    method: 'get'
  })
}

// 新增物流单
export function addTblLogisticsSheet(data) {
  return request({
    url: '/system/TblLogisticsSheet',
    method: 'post',
    data: data
  })
}

// 修改物流单
export function updateTblLogisticsSheet(data) {
  return request({
    url: '/system/TblLogisticsSheet',
    method: 'put',
    data: data
  })
}

// 删除物流单
export function delTblLogisticsSheet(id) {
  return request({
    url: '/system/TblLogisticsSheet/' + id,
    method: 'delete'
  })
}

// 查询业务id
export function isDelivery(id){
  return request({
    url: '/system/TblLogisticsSheet/isDelivery/'+id,
    method: 'get',
  })
}

